package com.kh.reggie.entity;

import com.baomidou.mybatisplus.annotation.*;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("email")
public class Email implements Serializable {

    //邮箱
    @TableField("emailId")
    private String emailId;
    //验证码
    private int code;
    //最后验证码时间
    @TableField(value="lastCodeTime",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastCodeTime;

    @TableField(value="createTime",fill = FieldFill.INSERT)//插入时填充字段
    private LocalDateTime createTime;

    @TableField(value="updateTime",fill = FieldFill.INSERT_UPDATE)//插入、更新时填充字段，后面的是枚举
    private LocalDateTime updateTime;
    @TableField(value="createUser",fill = FieldFill.INSERT)
    private Long createUser;
    @TableField(value="updateUser",fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}
